package club.xyes.zkh.ecommerce.service.listener;

import club.xyes.zkh.ecommerce.commons.entity.TransactionLog;

import java.util.Map;

/**
 * Create by 郭文梁 2019/4/26 0026 18:25
 * OnPaymentSuccessListener
 * 支付成功监听器
 *
 * @author 郭文梁
 * @data 2019/4/26 0026
 */
public interface OnPaymentSuccessListener {
    /**
     * 支付成功回调
     *
     * @param context        上下文，处理结果可以放到上下文中存储
     * @param transactionLog 交易记录
     */
    void onPaymentSuccess(TransactionLog transactionLog, Map<String, Object> context);
}
